package com.qezhhnjy.firstuser.bean;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Component;

/**
 * @author zhaoyangfu
 * @date 2021/5/18-19:26
 */
@Data
@Component
@Slf4j
@ConditionalOnMissingBean(MyTestBean2.class)
public class MyTestBean {
    private String testStr = "testStr";

    public void first() {
        log.warn("MyTestBean first");
    }
}